package com.jeeplus.modules.sys.dao;

import java.util.List;
import java.util.Map;

import com.jeeplus.common.persistence.TreeDao;
import com.jeeplus.common.persistence.annotation.MyBatisDao;
import com.jeeplus.modules.sys.entity.Office;

/**
 * 机构DAO接口
 * @author jeeplus
 * @version 2014-05-16
 */
@MyBatisDao
public interface OfficeDao extends TreeDao<Office> {
	
	public Office getByCode(String code);

	public List<Office> findAllListLike(Map<String,Object> condMap);

	public Office findOneByPrimaryKey(String officeId);

	public List<Office> findNotRootOffice();
	
	public List<Office> findOfficeByExcellent(Office office);
	
	public Office findOfficeByUserId(String userId);
}
